#include <cstdio>
#include <stdlib.h>

void main(){
    FILE *input, *output;
    if((input = fopen("input.txt", "r")) == NULL){
            printf("Unposible to open input file.\n");
        exit(1);
    }
        
    if((output = fopen("output.cpp", "w")) == NULL){
            printf("Unposible to open output file.\n");
        exit(1);
    }
        
    fprintf(output,"%s","#include <cstdio>\nvoid main(){\nprintf(\"%s\",\"");
    char ch = getc(input);  
    while(ch != EOF){               
            if((ch == '\\')||(ch == '\"')||(ch == '\%')||(ch == '\/')||(ch == '\'')) putc('\\', output);
            putc(ch, output);
            ch = getc(input);
    }
    fprintf(output,"\");\n}");      
        
    fclose(input);
    fclose(output); 
}